package org.example.struct.array;

/**
 * @author liyishan
 * @date 2024/2/18 10:16
 * @apiNote
 */

public class LCR182DynamicPassword {
    public static void main(String[] args) {
        String  password = "123456";
        System.out.println(dynamicPassword(password, 3));
    }
    public static String dynamicPassword(String password, int target) {
        String s1 = password.substring(target);
        String s2 = password.substring(0, target);
        return s1+s2;
    }
}
